set(SOURCES
    main.cpp 
    area.cpp 
    file_area.cpp 
    image_area.cpp 
    main_area.cpp 
    main_window.cpp 
    pin_area.cpp 
    text_area.cpp 
    resize_tool.cpp 
    vector_line.cpp
    text_widget.cpp
    smart_byte_array.cpp
)

set(MOC_HEADERS 
    main_window.h
    main_area.h
    area.h
    resize_tool.h
)

set(UIS
    main_window.ui
)

set (RESOURCES
    icons.qrc
)

include_directories(
    ${CMAKE_CURRENT_BINARY_DIR}
)

qt4_wrap_ui(UI_HEADERS ${UIS})
qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})
qt4_add_resources(QRC_SOURCES ${RESOURCES})

add_executable (${PROJECT_NAME}
    ${SOURCES}
    ${UI_HEADERS}
    ${QRC_SOURCES}
    ${MOC_HEADERS}
    ${MOC_SOURCES}
) 

target_link_libraries(${PROJECT_NAME}
    ${QT_LIBRARIES}
)

install(TARGETS ${PROJECT_NAME}
     RUNTIME DESTINATION ${OUTPUT_DIR})
